@using Rail.Net.Core.Model
@model Ru

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>Ru</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Code</div>
    <div class="display-field">@Model.Code</div>

    <div class="display-label">CodeLong</div>
    <div class="display-field">@Model.CodeLong</div>

    <div class="display-label">Stations</div>
    <div class="display-field">@(Model.Stations == null ? "None" : Model.Stations.Count.ToString())</div>

    <div class="display-label">RelationRus</div>
    <div class="display-field">@(Model.RelationRus == null ? "None" : Model.RelationRus.Count.ToString())</div>

    <div class="display-label">PriceDistances</div>
    <div class="display-field">@(Model.PriceDistances == null ? "None" : Model.PriceDistances.Count.ToString())</div>

    <div class="display-label">PriceSerials</div>
    <div class="display-field">@(Model.PriceSerials == null ? "None" : Model.PriceSerials.Count.ToString())</div>
</fieldset>
@using (Html.BeginForm())
{
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


